MAIN= ../../.objs/release/main.o
LIB=../../lib/release/libmain.a
INCLUDE=../grmr/TriplePParser.h ../grmr/TriplePLexer.h 
MODE ?=release
FLAG= -g
#INMAIN = ../../.objs/release/inmain.o
#INLIB=../../lib/release/libinmain.a
#DATAINCLUDE=../InData/InDataParser.h ../InData/InDataLexer.h
INCLUDE+=../InData/InDataParser.h ../InData/InDataLexer.h

$(LIB): $(MAIN) $(INCLUDE) # $(INMAIN) $(DATAINCLUDE)
	ar rcs $(LIB) $(MAIN)
#	ar rcs $(INLIB) $(INMAIN)

$(MAIN): main.c $(INCLUDE)
	g++ -c $(FLAG) -o $(MAIN) $< -I ../../include/ -I ../grmr/ -I ../InData/ -lboost_graph -lantlr3c

#$(INMAIN): inmain.c $(DATAINCLUDE)
#	g++ -c $(FLAG) -o $(INMAIN) $< -I ../../include -I ../InData/ -lboost_graph -lantlr3c

clean :
	rm -f $(MAIN) $(LIB)
